<template>
  <div>
    <div class="listBox">
      <div class="list"  v-for="item of recommendList" :key="item.id">
        <div class="listLeft">
          <img :src="item.imgUrl"  alt   />
        </div>
        <div class="listRight">
          <div class="title">{{item.title}}</div>
          <div class="desc">{{item.desc}}</div>
          <button class="item-button">查看详情</button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "recommend",
  props:{
    recommendList: Array
  }  
};
</script>

<style lang="stylus" scoped>
.title {
  line-height: 0.54rem;
  font-size: 0.32rem;
}

.desc {
  line-height: 0.4rem;
  color: #ccc;
}

.item-button {
  line-height: 0.44rem;
  margin-top: 0.16rem;
  background: #ff9300;
  padding: 0 0.2rem;
  border-radius: 0.06rem;
  color: #fff;
}
.listLeft{
  img {
   width  2rem
  }
}
.list{
  border-bottom: 1px solid #e0e0e0;
  display flex
  align-items center
  padding .2rem 0
  .listRight{
    margin-left .4rem
  }
}
.listBox{
   padding 0 .2rem
}
</style>